Optimal. Leaf size=83 \[ -\frac {a^3 \tanh ^{-1}(\cosh (c+d x))}{d}+\frac {b \left (3 a^2-3 a b+b^2\right ) \cosh (c+d x)}{d}+\frac {(3 a-2 b) b^2 \cosh ^3(c+d x)}{3 d}+\frac {b^3 \cosh ^5(c+d x)}{5 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 83, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3265, 398, 212}
\begin {gather*} -\frac {a^3 \tanh ^{-1}(\cosh (c+d x))}{d}+\frac {b \left (3 a^2-3 a b+b^2\right ) \cosh (c+d x)}{d}+\frac {b^2 (3 a-2 b) \cosh ^3(c+d x)}{3 d}+\frac {b^3 \cosh ^5(c+d x)}{5 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 398
Rule 3265
Rubi steps
\begin {align*} \int \text {csch}(c+d x) \left (a+b \sinh ^2(c+d x)\right )^3 \, dx &=-\frac {\text {Subst}\left (\int \frac {\left (a-b+b x^2\right )^3}{1-x^2} \, dx,x,\cosh (c+d x)\right )}{d}\\ &=-\frac {\text {Subst}\left (\int \left (-b \left (3 a^2-3 a b+b^2\right )-(3 a-2 b) b^2 x^2-b^3 x^4+\frac {a^3}{1-x^2}\right ) \, dx,x,\cosh (c+d x)\right )}{d}\\ &=\frac {b \left (3 a^2-3 a b+b^2\right ) \cosh (c+d x)}{d}+\frac {(3 a-2 b) b^2 \cosh ^3(c+d x)}{3 d}+\frac {b^3 \cosh ^5(c+d x)}{5 d}-\frac {a^3 \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\cosh (c+d x)\right )}{d}\\ &=-\frac {a^3 \tanh ^{-1}(\cosh (c+d x))}{d}+\frac {b \left (3 a^2-3 a b+b^2\right ) \cosh (c+d x)}{d}+\frac {(3 a-2 b) b^2 \cosh ^3(c+d x)}{3 d}+\frac {b^3 \cosh ^5(c+d x)}{5 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.15, size = 83, normalized size = 1.00 \begin {gather*} \frac {30 b \left (24 a^2-18 a b+5 b^2\right ) \cosh (c+d x)+5 (12 a-5 b) b^2 \cosh (3 (c+d x))+3 \left (b^3 \cosh (5 (c+d x))+80 a^3 \log \left (\tanh \left (\frac {1}{2} (c+d x)\right )\right )\right )}{240 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(223\) vs.
\(2(79)=158\).
time = 1.11, size = 224, normalized size = 2.70
method | result | size |
default | \(\frac {b^{3} \left (\frac {\left (\cosh ^{5}\left (d x +c \right )\right )}{5}+\frac {\left (\cosh ^{3}\left (d x +c \right )\right )}{3}+\cosh \left (d x +c \right )-2 \arctanh \left ({\mathrm e}^{d x +c}\right )\right )+3 a \,b^{2} \left (\frac {\left (\cosh ^{3}\left (d x +c \right )\right )}{3}+\cosh \left (d x +c \right )-2 \arctanh \left ({\mathrm e}^{d x +c}\right )\right )-3 b^{3} \left (\frac {\left (\cosh ^{3}\left (d x +c \right )\right )}{3}+\cosh \left (d x +c \right )-2 \arctanh \left ({\mathrm e}^{d x +c}\right )\right )+3 a^{2} b \left (\cosh \left (d x +c \right )-2 \arctanh \left ({\mathrm e}^{d x +c}\right )\right )-6 a \,b^{2} \left (\cosh \left (d x +c \right )-2 \arctanh \left ({\mathrm e}^{d x +c}\right )\right )+3 b^{3} \left (\cosh \left (d x +c \right )-2 \arctanh \left ({\mathrm e}^{d x +c}\right )\right )-2 a^{3} \arctanh \left ({\mathrm e}^{d x +c}\right )+6 a^{2} b \arctanh \left ({\mathrm e}^{d x +c}\right )-6 a \,b^{2} \arctanh \left ({\mathrm e}^{d x +c}\right )+2 b^{3} \arctanh \left ({\mathrm e}^{d x +c}\right )}{d}\) | \(224\) |
risch | \(\frac {b^{3} {\mathrm e}^{5 d x +5 c}}{160 d}+\frac {{\mathrm e}^{3 d x +3 c} a \,b^{2}}{8 d}-\frac {5 \,{\mathrm e}^{3 d x +3 c} b^{3}}{96 d}+\frac {3 \,{\mathrm e}^{d x +c} a^{2} b}{2 d}-\frac {9 \,{\mathrm e}^{d x +c} a \,b^{2}}{8 d}+\frac {5 \,{\mathrm e}^{d x +c} b^{3}}{16 d}+\frac {3 \,{\mathrm e}^{-d x -c} a^{2} b}{2 d}-\frac {9 \,{\mathrm e}^{-d x -c} a \,b^{2}}{8 d}+\frac {5 \,{\mathrm e}^{-d x -c} b^{3}}{16 d}+\frac {{\mathrm e}^{-3 d x -3 c} a \,b^{2}}{8 d}-\frac {5 \,{\mathrm e}^{-3 d x -3 c} b^{3}}{96 d}+\frac {b^{3} {\mathrm e}^{-5 d x -5 c}}{160 d}+\frac {a^{3} \ln \left ({\mathrm e}^{d x +c}-1\right )}{d}-\frac {a^{3} \ln \left ({\mathrm e}^{d x +c}+1\right )}{d}\) | \(236\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 193 vs.
\(2 (79) = 158\).
time = 0.28, size = 193, normalized size = 2.33 \begin {gather*} \frac {1}{480} \, b^{3} {\left (\frac {3 \, e^{\left (5 \, d x + 5 \, c\right )}}{d} - \frac {25 \, e^{\left (3 \, d x + 3 \, c\right )}}{d} + \frac {150 \, e^{\left (d x + c\right )}}{d} + \frac {150 \, e^{\left (-d x - c\right )}}{d} - \frac {25 \, e^{\left (-3 \, d x - 3 \, c\right )}}{d} + \frac {3 \, e^{\left (-5 \, d x - 5 \, c\right )}}{d}\right )} + \frac {1}{8} \, a b^{2} {\left (\frac {e^{\left (3 \, d x + 3 \, c\right )}}{d} - \frac {9 \, e^{\left (d x + c\right )}}{d} - \frac {9 \, e^{\left (-d x - c\right )}}{d} + \frac {e^{\left (-3 \, d x - 3 \, c\right )}}{d}\right )} + \frac {3}{2} \, a^{2} b {\left (\frac {e^{\left (d x + c\right )}}{d} + \frac {e^{\left (-d x - c\right )}}{d}\right )} + \frac {a^{3} \log \left (\tanh \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 1128 vs.
\(2 (79) = 158\).
time = 0.42, size = 1128, normalized size = 13.59 \begin {gather*} \frac {3 \, b^{3} \cosh \left (d x + c\right )^{10} + 30 \, b^{3} \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{9} + 3 \, b^{3} \sinh \left (d x + c\right )^{10} + 5 \, {\left (12 \, a b^{2} - 5 \, b^{3}\right )} \cosh \left (d x + c\right )^{8} + 5 \, {\left (27 \, b^{3} \cosh \left (d x + c\right )^{2} + 12 \, a b^{2} - 5 \, b^{3}\right )} \sinh \left (d x + c\right )^{8} + 40 \, {\left (9 \, b^{3} \cosh \left (d x + c\right )^{3} + {\left (12 \, a b^{2} - 5 \, b^{3}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{7} + 30 \, {\left (24 \, a^{2} b - 18 \, a b^{2} + 5 \, b^{3}\right )} \cosh \left (d x + c\right )^{6} + 10 \, {\left (63 \, b^{3} \cosh \left (d x + c\right )^{4} + 72 \, a^{2} b - 54 \, a b^{2} + 15 \, b^{3} + 14 \, {\left (12 \, a b^{2} - 5 \, b^{3}\right )} \cosh \left (d x + c\right )^{2}\right )} \sinh \left (d x + c\right )^{6} + 4 \, {\left (189 \, b^{3} \cosh \left (d x + c\right )^{5} + 70 \, {\left (12 \, a b^{2} - 5 \, b^{3}\right )} \cosh \left (d x + c\right )^{3} + 45 \, {\left (24 \, a^{2} b - 18 \, a b^{2} + 5 \, b^{3}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{5} + 30 \, {\left (24 \, a^{2} b - 18 \, a b^{2} + 5 \, b^{3}\right )} \cosh \left (d x + c\right )^{4} + 10 \, {\left (63 \, b^{3} \cosh \left (d x + c\right )^{6} + 35 \, {\left (12 \, a b^{2} - 5 \, b^{3}\right )} \cosh \left (d x + c\right )^{4} + 72 \, a^{2} b - 54 \, a b^{2} + 15 \, b^{3} + 45 \, {\left (24 \, a^{2} b - 18 \, a b^{2} + 5 \, b^{3}\right )} \cosh \left (d x + c\right )^{2}\right )} \sinh \left (d x + c\right )^{4} + 40 \, {\left (9 \, b^{3} \cosh \left (d x + c\right )^{7} + 7 \, {\left (12 \, a b^{2} - 5 \, b^{3}\right )} \cosh \left (d x + c\right )^{5} + 15 \, {\left (24 \, a^{2} b - 18 \, a b^{2} + 5 \, b^{3}\right )} \cosh \left (d x + c\right )^{3} + 3 \, {\left (24 \, a^{2} b - 18 \, a b^{2} + 5 \, b^{3}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{3} + 3 \, b^{3} + 5 \, {\left (12 \, a b^{2} - 5 \, b^{3}\right )} \cosh \left (d x + c\right )^{2} + 5 \, {\left (27 \, b^{3} \cosh \left (d x + c\right )^{8} + 28 \, {\left (12 \, a b^{2} - 5 \, b^{3}\right )} \cosh \left (d x + c\right )^{6} + 90 \, {\left (24 \, a^{2} b - 18 \, a b^{2} + 5 \, b^{3}\right )} \cosh \left (d x + c\right )^{4} + 12 \, a b^{2} - 5 \, b^{3} + 36 \, {\left (24 \, a^{2} b - 18 \, a b^{2} + 5 \, b^{3}\right )} \cosh \left (d x + c\right )^{2}\right )} \sinh \left (d x + c\right )^{2} - 480 \, {\left (a^{3} \cosh \left (d x + c\right )^{5} + 5 \, a^{3} \cosh \left (d x + c\right )^{4} \sinh \left (d x + c\right ) + 10 \, a^{3} \cosh \left (d x + c\right )^{3} \sinh \left (d x + c\right )^{2} + 10 \, a^{3} \cosh \left (d x + c\right )^{2} \sinh \left (d x + c\right )^{3} + 5 \, a^{3} \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{4} + a^{3} \sinh \left (d x + c\right )^{5}\right )} \log \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right ) + 1\right ) + 480 \, {\left (a^{3} \cosh \left (d x + c\right )^{5} + 5 \, a^{3} \cosh \left (d x + c\right )^{4} \sinh \left (d x + c\right ) + 10 \, a^{3} \cosh \left (d x + c\right )^{3} \sinh \left (d x + c\right )^{2} + 10 \, a^{3} \cosh \left (d x + c\right )^{2} \sinh \left (d x + c\right )^{3} + 5 \, a^{3} \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{4} + a^{3} \sinh \left (d x + c\right )^{5}\right )} \log \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right ) - 1\right ) + 10 \, {\left (3 \, b^{3} \cosh \left (d x + c\right )^{9} + 4 \, {\left (12 \, a b^{2} - 5 \, b^{3}\right )} \cosh \left (d x + c\right )^{7} + 18 \, {\left (24 \, a^{2} b - 18 \, a b^{2} + 5 \, b^{3}\right )} \cosh \left (d x + c\right )^{5} + 12 \, {\left (24 \, a^{2} b - 18 \, a b^{2} + 5 \, b^{3}\right )} \cosh \left (d x + c\right )^{3} + {\left (12 \, a b^{2} - 5 \, b^{3}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )}{480 \, {\left (d \cosh \left (d x + c\right )^{5} + 5 \, d \cosh \left (d x + c\right )^{4} \sinh \left (d x + c\right ) + 10 \, d \cosh \left (d x + c\right )^{3} \sinh \left (d x + c\right )^{2} + 10 \, d \cosh \left (d x + c\right )^{2} \sinh \left (d x + c\right )^{3} + 5 \, d \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{4} + d \sinh \left (d x + c\right )^{5}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 202 vs.
\(2 (79) = 158\).
time = 0.44, size = 202, normalized size = 2.43 \begin {gather*} \frac {3 \, b^{3} e^{\left (5 \, d x + 5 \, c\right )} + 60 \, a b^{2} e^{\left (3 \, d x + 3 \, c\right )} - 25 \, b^{3} e^{\left (3 \, d x + 3 \, c\right )} + 720 \, a^{2} b e^{\left (d x + c\right )} - 540 \, a b^{2} e^{\left (d x + c\right )} + 150 \, b^{3} e^{\left (d x + c\right )} - 480 \, a^{3} \log \left (e^{\left (d x + c\right )} + 1\right ) + 480 \, a^{3} \log \left ({\left | e^{\left (d x + c\right )} - 1 \right |}\right ) + {\left (720 \, a^{2} b e^{\left (4 \, d x + 4 \, c\right )} - 540 \, a b^{2} e^{\left (4 \, d x + 4 \, c\right )} + 150 \, b^{3} e^{\left (4 \, d x + 4 \, c\right )} + 60 \, a b^{2} e^{\left (2 \, d x + 2 \, c\right )} - 25 \, b^{3} e^{\left (2 \, d x + 2 \, c\right )} + 3 \, b^{3}\right )} e^{\left (-5 \, d x - 5 \, c\right )}}{480 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.30, size = 184, normalized size = 2.22 \begin {gather*} \frac {{\mathrm {e}}^{c+d\,x}\,\left (24\,a^2\,b-18\,a\,b^2+5\,b^3\right )}{16\,d}-\frac {2\,\mathrm {atan}\left (\frac {a^3\,{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\sqrt {-d^2}}{d\,\sqrt {a^6}}\right )\,\sqrt {a^6}}{\sqrt {-d^2}}+\frac {{\mathrm {e}}^{-c-d\,x}\,\left (24\,a^2\,b-18\,a\,b^2+5\,b^3\right )}{16\,d}+\frac {b^3\,{\mathrm {e}}^{-5\,c-5\,d\,x}}{160\,d}+\frac {b^3\,{\mathrm {e}}^{5\,c+5\,d\,x}}{160\,d}+\frac {b^2\,{\mathrm {e}}^{-3\,c-3\,d\,x}\,\left (12\,a-5\,b\right )}{96\,d}+\frac {b^2\,{\mathrm {e}}^{3\,c+3\,d\,x}\,\left (12\,a-5\,b\right )}{96\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________